﻿cmake_minimum_required(VERSION 3.16)

project(CameraPC_Qt6 VERSION 2.0.0 LANGUAGES CXX)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(QT NAMES Qt6 REQUIRED COMPONENTS Core Widgets LinguistTools Multimedia)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Widgets LinguistTools Multimedia)

add_library(CameraPC_Qt6 MODULE
    ../Camera_global.h
    ../IndustryCamera.h
    ../IndustryCameraInfo.h
    ../DialogCameraSetup.h
    CameraPC_Qt6.h
    CameraPC_Qt6.cpp
    CameraFactory.h
    CameraFactory.cpp
)
target_include_directories(CameraPC_Qt6 PUBLIC ${FFMPEG_INCLUDE_DIRS})
target_link_libraries(CameraPC_Qt6 PUBLIC Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Multimedia CameraCommon)
target_compile_definitions(CameraPC_Qt6 PRIVATE CAMERA_LIBRARY)


